package org.xlx.xlx_oa.role_user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.xlx.xlx_oa.common.BaseEntity;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "AdmProcess对象", description = "")
public class AdmProcess extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "处理任务id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "申请类型")
    private String processType;

    @ApiModelProperty(value = "申请信息id")
    private Long applyId;

    @ApiModelProperty(value = "操作人id")
    private Long userId;

    @ApiModelProperty(value = "操作类型，申请、审批")
    private String action;

    @ApiModelProperty(value = "审批结果")
    private String result;

    @ApiModelProperty(value = "审批意见")
    private String reason;

    @ApiModelProperty(value = "任务序号")
    private Integer orderNo;

    @ApiModelProperty(value = "任务状态")
    private String processStatus;

    @ApiModelProperty(value = "是否是最后一个任务")
    private String isLast;
}
